<?php
 $servername = "w.rdc,sae.sina.com.cn"; 
$username = "xiaowang1995@126.com"; 
$password = "01230121234123"; 
$dbname = "app_wangcong2014404241"; 
$port=3307;
// 创建连接 
$conn = new mysqli($servername, $username, $password,$dbname); 
// 检测连接 
if ($conn->connect_error) { 
die("连接失败: " . $conn->connect_error); 
} 
$conn->query("set names 'utf8'"); 
···
?>

